using System;

namespace CheckoutCodeKata
{
    public class Counter
    {
        private int _value;
        private readonly Display _display;

        public Counter(Display display)
        {
            _display = display;
        }

        public void IncrementBy(int value)
        {
            _value += value;
        }

        public void ShowCurrentValue()
        {
            _display.Show(_value);
        }

        public void Reset()
        {
            _value = 0;
        }
    }
}